package io.renren.modules.lucky.service;

import io.renren.common.service.CrudService;
import io.renren.modules.lucky.dto.LuckyRecordDTO;
import io.renren.modules.lucky.dto.background.LuckyIndexChartsResp;
import io.renren.modules.lucky.dto.background.LuckyIndexReq;
import io.renren.modules.lucky.dto.background.LuckyIndexResp;
import io.renren.modules.lucky.dto.background.ReportReqDto;
import io.renren.modules.lucky.entity.LuckyRecordEntity;

import java.util.List;

/**
 * 招财猫后台记录
 *
 * @author Liang Pei 
 * @since 1.0.0 2025-01-06
 */
public interface LuckyRecordService extends CrudService<LuckyRecordEntity, LuckyRecordDTO> {

    /**
     * 查询记录
     */
    LuckyRecordEntity queryBySessionId(String sessionId);

    /**
     * 查询报表
     */
    List<LuckyRecordEntity> queryListByParam(ReportReqDto reportReq, String platCode);

    /**
     * 查询昨日汇总
     */
    LuckyIndexResp queryYesterdayData(String platCode, LuckyIndexReq indexReq);

    /**
     * 查询前七日汇总
     */
    LuckyIndexResp querySevenDaysData(String platCode, LuckyIndexReq indexReq);

    /**
     * 查询本月汇总
     */
    LuckyIndexResp queryMonthData(String platCode, LuckyIndexReq indexReq);

    /**
     * 查询图表数据
     */
    List<LuckyIndexChartsResp> queryChartsData(String platCode, LuckyIndexReq indexReq);
}